package com.heatingcharge.mapper.charge;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heatingcharge.dto.ChargeInfoDTO;
import com.heatingcharge.dto.ChargePayableDTO;
import com.heatingcharge.dto.ChargeStatisticInfoDTO;
import com.heatingcharge.dto.CurrentDayChargeInfo;
import com.heatingcharge.entity.charge.ChargeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heatingcharge.param.SearchParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author devin.jiang
 * @since 2019-10-17
 */
public interface ChargeInfoMapper extends BaseMapper<ChargeInfo> {
    IPage<ChargeInfoDTO> selectChargeInfo(Page page, @Param("query") SearchParam searchParam);
    List<ChargeInfoDTO> selectChargeInfo(@Param("query")SearchParam searchParam);
    List<ChargeInfoDTO> selectHouseChargeInfo(@Param("query")SearchParam searchParam);

    CurrentDayChargeInfo selectCurrentDayInfo();

    ChargeStatisticInfoDTO selectChargeMode();

}
